<div class="head">Создание очереди</div>
<div class="cont_body" style="padding: 10px">
    <? if ($this->message) : ?>
        <div class="msg"><? echo $this->message ?></div>
    <? endif; ?>
    <form class="form-horizontal" id="form" method="post">
    <fieldset>
        <div class="control-group">
        <label class="control-label" for="trunk_name">Название очереди</label>
        <div class="controls">
            <input type="text" class="input-xlarge" id="trunk_name" name="name" value="">
        </div>
        </div>
        
        <div class="control-group">
            <label class="control-label" for="group">Группа</label>
            <div class="controls">
                <select id="group" name="group" style="width: 200px;">
                <?php foreach($this->groups as $group): ?>
                    <option id="<?php echo $group->vk_id; ?>" <?php echo (isset($_SESSION['current_group']) && $_SESSION['current_group'] == $group->vk_id) ? 'selected' : '';?>><?php echo $group->name; ?></option>
                <?php endforeach; ?>
                </select>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label" for="time">Время</label>
            <div class="controls">
                <textarea id="time" name="time" style="height: 120px; width: 120px;" value=""></textarea>
            </div>
        </div>
        
        <div class="form-actions">
            <input type="submit" id="send" class="btn btn-primary" value="Создать" />
            <div class="progress" id="box_progress"></div>
        </div>
    </fieldset>
    </form>
</div>
<div class="clear"></div>